<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<TemplateWeb.Models.ViewModels.GroupViewModel>" %>
<div class="AdminPageText">
List Of LoaiGia
</div>
<table class="Grid" cellpadding="0" cellspacing="0">
	<thead>
		<tr>
			<th>TenLoaiGia</th>
			<th></th>
			<th></th>
		<tr>
	</thead>
	<% for (int i=0; i<Model.LoaiGiaModel.GetModel.LstObjModel.Count; i++){
		if (i % 2 != 0) {%>
		<tr class="Row" id="row-<%= Model.LoaiGiaModel.GetModel.LstObjModel[i].ID %>">
		<% }
		else { %>
		<tr class="AlternatingRow" id="row-<%= Model.LoaiGiaModel.GetModel.LstObjModel[i].ID %>">
		<% } %>
			<td><%= Model.LoaiGiaModel.GetModel.LstObjModel[i].TenLoaiGia %></td>
			<td>
				<%= Ajax.ActionLink("Edit", "EditLoaiGia", "Admin", new { page = Model.LoaiGiaModel.GetModel.CurrentPage, id = Model.LoaiGiaModel.GetModel.LstObjModel[i].ID }, new AjaxOptions { UpdateTargetId = "PartialDiv" })%>
			</td>
			<td>
				<%= Ajax.ActionLink("Delete", "DeleteLoaiGia", "Admin", new { id = Model.LoaiGiaModel.GetModel.LstObjModel[i].ID }, new AjaxOptions{Confirm = "Are you sure you want to Delete it? This action cannot be undone.", HttpMethod = "Delete", OnComplete = "jsonDelete_OnComplete"})%>
			</td>
		</tr>
	<% } %>  
</table>
